<template>
  <div class="page">
    <div class="ml-[100px]">
      <el-button type="warning" @click="handleClick">111111</el-button>
    </div>
    <h1 class="text-red-600">首页</h1>
    <p>欢迎来到首页 🎉</p>
    <RouterLink v-for="item in [1, 2, 3]" :key="item" to="/AboutView">
      前往 About 页1111111111111111111面
    </RouterLink>
    <Child />
    |
    <RouterLink to="/dashboard">前往后台页面</RouterLink>
  </div>
</template>
<script setup lang="ts">
import Child from './chilPage.vue'
import { RouterLink } from 'vue-router'
const is = ref(true)
function handleClick() {
  if (is.value) return
  console.log('handleClick')
}
</script>
